<?php
// +----------------------------------------------------------------------
// | API前端路由
// +----------------------------------------------------------------------

use own\middleware\FooMiddleware;
use own\middleware\ApiMiddleware;
use think\facade\Route;

Route::group('api', function() {
    /**
     * 会员登录
     */
    Route::group('member', function() {
        Route::get('token', 'login');
    })->prefix('api.member.Login/')->middleware(FooMiddleware::class)->middleware(ApiMiddleware::class);
    /**
     * 文件上传相关
     */
    Route::group('file', function () {
        Route::post('uploadImage', 'uploadImage'); //图片文件上传
        Route::post('uploadFile', 'uploadFile'); //附件文件上传
    })->prefix('admin.system.Upload/');
});
